package kuaidi.api.services;

import java.util.Map;

import kuaidi.entity.kuaidijieguo.Kdjg;
import kuaidi.entity.zhouweikuaidi.JKD;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by John on 2016/11/1.
 */

public interface ChakuaidiService {
    String BASE_URL = "http://v.juhe.cn/exp/";
    String MORE_URL = "index?";

    @POST(MORE_URL)
    Observable<Kdjg> getKdjgData(@QueryMap Map<String, String> params);


    String JKDBASE_URL = "http://j.kuaidi100.com/";
    String ADD_URL = "searchapi.do?";

    @POST(ADD_URL)
    Observable<JKD> getJKDData(@QueryMap Map<String, String> params);

    String URL = "http://j.kuaidi100.com/searchapi.do?userid=0&method=courieraround&hash=9ac306d00a9b1d15114e5fdc12d47dc4&token=&json=%7B%22nt%22%3A%22wifi%22%2C%22ltype%22%3A%22mars%22%2C%22tra%22%3A%2240c476de-8fb5-4e73-9230-44997d668df2%22%2C%22versionCode%22%3A421%2C%22appid%22%3A%22com.Kingdee.Express%22%2C%22mLongitude%22%3A114.42606%2C%22os_version%22%3A%22android4.3%22%2C%22mType%22%3A%22mars%22%2C%22t%22%3A1477911384414%2C%22os_name%22%3A%22Nokia_XL_4G%22%2C%22address%22%3A%22%E6%B9%96%E5%8C%97%E7%9C%81%E6%AD%A6%E6%B1%89%E5%B8%82%E6%B1%9F%E5%A4%8F%E5%8C%BA%E6%B5%81%E8%8A%B3%E8%B7%AF%E9%9D%A0%E8%BF%91%E6%AD%A6%E6%B1%89%E5%B7%A5%E7%A8%8B%E5%A4%A7%E5%AD%A6%E6%B5%81%E8%8A%B3%E6%A0%A1%E5%8C%BA2%E5%8F%B7%E6%95%99%E5%AD%A6%E6%A5%BC%22%2C%22uchannel%22%3A%22null%22%2C%22adcode%22%3A%22420115%22%2C%22longitude%22%3A%22114.42606%22%2C%22latitude%22%3A%2230.462656%22%2C%22mLatitude%22%3A30.462656%7D&";
}
